// // 请求横屏截图
// requestScreenCapture(true);
// var img = captureScreen();
// log(img.class);
// log(img.class == "class com.stardust.autojs.runtime.api.Images$CapturedImage" ? true : false);

let imgPath = "/sdcard/02.jpg";
var url = "http://127.0.0.1:34567/";
// let r = http.postJson(url, {
//   action: "ocr",
//   imgPath: imgPath,
// });
let r = http.postJson(url, {
  action: "captureScreenOCR",
  rect: [100, 222, 333, 444],
});
let obj = r.body.string();
log(obj);
